<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
</head>
<body>
<div class="container">
    <form>
        <input type="text" name="goods_name" value="{$Request.param.goods_name}">
        <input type="submit" value="搜索">
    </form>
    <table class="table">
        <thead>
        <tr>
            <th scope="col">#</th>
            <th scope="col">商品类别</th>
            <th scope="col">商品品牌</th>
            <th scope="col">商品名称</th>
            <th scope="col">商品库存</th>
            <th scope="col">商品价格</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data" id="v"}
        <tr>
            <th scope="row">{$v.id}</th>
            <td>{$v.tname}</td>
            <td>{$v.bname}</td>
            <td><a href="{:url('admin/good/detail',['id'=>$v.id])}">{$v.goods_name}</a></td>
            <td>{$v.count}</td>
            <td>{$v.price}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$data->render()}
</div>
</body>
</html>